import request from "@/utils/request";

// 查询防范提示列表
export function listPreventiveTips(query) {
  return request({
    url: "/preventive/listPage",
    method: "get",
    params: query,
  });
}

// 查询防范提示详细（根据Id查询单个）
export function getPreventiveTipsById(query) {
  return request({
    url: "/preventive/selectOne",
    method: "get",
    params: query,
  });
}

// 新增防范提示
export function addPreventiveTips(data) {
  return request({
    url: "/preventive/add",
    method: "post",
    data: data,
  });
}

// 修改防范提示
export function updatePreventiveTips(data) {
  return request({
    url: "/preventive/update",
    method: "put",
    data: data,
  });
}

// 删除防范提示
export function delPreventiveTips(Id) {
  return request({
    url: "/preventive/delete/" + Id,
    method: "delete",
  });
}
